home *** CD-ROM | disk | FTP | other *** search
- [LISTING 1]
- /*==========================================================================*\
-
- hello.c
-
- \*--------------------------------------------------------------------------*/
-
- #include "stdio.h"
-
- #define PUBLIC
- #define PRIVATE static
-
- /*==========================================================================*\
-
- main()
-
- \*--------------------------------------------------------------------------*/
-
- PUBLIC void main(void)
- {
-
- /*-----------------------------------------------------------------------*\
- Initialization
- \*-----------------------------------------------------------------------*/
-
- init_stdio();
-
- /*-----------------------------------------------------------------------*\
- Display a greeting...
- \*-----------------------------------------------------------------------*/
-
- puts("Hello, embedded world!");
-
- /*-----------------------------------------------------------------------*\
- If you return from main(), the startup code should invoke a reset...
- \*-----------------------------------------------------------------------*/
-
- puts("About to reset. Goodbye!");
-
- }
-
-
- /*==========================================================================*\
- End of source file.
- \*==========================================================================*/
-
-